Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support placement_group=None in PlacementGroupSchedulingStrategy #27370

Merged
merged 2 commits into from
Aug 2, 2022

Conversation

jjyao
Copy link
Collaborator

@jjyao jjyao commented Aug 2, 2022

Why are these changes needed?

We decided to allow escaping the parent pg via PlacementGroupSchedulingStrategy(placement_group=None) instead of using "DEFAULT". Our doc is updated with that but in the code it's still not allowed.

Related issue number

Closes #27328

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

because the resource request {'CPU': 10} cannot fit into any bundles for the placement group, [{'CPU': 1.0}].

**Expected behavior**: The above executes.

**Fix**: In the ``@ray.remote`` declaration of tasks
called by ``create_task_that_uses_resources()`` , include a
``placement_group=None``.
``scheduling_strategy=PlacementGroupSchedulingStrategy(placement_group=None)``.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still feel a bit weird that we specify a strategy just to not use that strategy.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We allow both right? Because in Datasets, we override using DEFAULT.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, currently we allow both.

@ericl ericl merged commit cd2e590 into ray-project:master Aug 2, 2022
@jjyao jjyao deleted the jjyao/pg branch August 2, 2022 20:23
jjyao added a commit that referenced this pull request Aug 3, 2022
)

We decided to allow escaping the parent pg via `PlacementGroupSchedulingStrategy(placement_group=None)` instead of using "DEFAULT". Our doc is updated with that but in the code it's still not allowed.
ericl pushed a commit that referenced this pull request Aug 3, 2022
Stefan-1313 pushed a commit to Stefan-1313/ray_mod that referenced this pull request Aug 18, 2022
…-project#27370)

We decided to allow escaping the parent pg via `PlacementGroupSchedulingStrategy(placement_group=None)` instead of using "DEFAULT". Our doc is updated with that but in the code it's still not allowed.

Signed-off-by: Stefan van der Kleij <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[core] PlacementGroupSchedulingStrategy does not support placement_group=None
3 participants